package method;

/**
 * 2024/5/4
 */
public class MethodDemo4 {
    public static void main(String[] args) {
         int [] a=new int[]{10,20,30};
         System.out.println(a);
         change(a);
         System.out.println("main"+a[1]);

       int[] b=  new int[]{1,2,3};
       change(b);
       System.out.println(b[2]);
  }

    public static void  change(int[] arrs){
        System.out.println(arrs);
        System.out.println("方法内1："+arrs[1]);
        arrs[1]=222;
        System.out.println("方法内2:"+arrs[1]);
  }
}